home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-11 | 527 b | 21 lines | [TEXT/ttxt] |
- ; use these functions/procedures for initial experiments with software controlled I/O
- ; each function accepts its argument or returns the result in Register 0
- ;the locations instatus, indata, outstatus and outdate are assigned by the assembler as
- ; locations 0 through 4
-
- input
- copy:byte instatus,Reg0
- jump:equal input
- copy:byte indata=>reg0
- return
-
- output
- copy:long reg0,savedata
- copy:byte outstatus=>reg0
- jump:not_equal output
- copy:long savedata,Reg0
- copy:byte reg0,outdata
- return
- savedata variable:long 1
- end
-